package com.oj.judge.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.oj.common.mybatis.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Description
 * @Author bin
 * @Date 2025/6/30
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_user_submit")
public class UserSubmit extends BaseEntity {
    @TableId(value = "submit_id", type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long submitId;

    private Long userId; //唯一确定用户     2001/2002

    private Long questionId;  //唯一确定题目  100      100     102

    private Long examId;   //唯一确定竞赛      1       2          3   4    null

    private Integer programType;

    private String userCode;

    private Integer pass;

    private Integer score;

    private String exeMessage;

    private String caseJudgeRes;
}
